/*
 * TitledData.cpp
 *
 *  Created on: Jan 5, 2009
 *      Author: sez
 */

#include "TitledData.h"

TitledData::TitledData(const QString &title)
    : mTitle(title)
{
}

TitledData::TitledData(const TitledData &rhs)
    : mTitle(rhs.title())
{
}

TitledData::~TitledData()
{
}

TitledData &TitledData::operator=(const TitledData &rhs)
{
    this->mTitle = rhs.title();
    return *this;
}

QString TitledData::summary() const
{
    return title() + " " + description().left(20);
}
